//
//  MYXAgreementViewController.m
//  meiyinxiang
//
//  Created by 陈李飞 on 2017/11/4.
//  Copyright © 2017年 hbjApple. All rights reserved.
//协议

#import "MYXAgreementViewController.h"

@interface MYXAgreementViewController ()
@property(strong,nonatomic)UIWebView *webView;
@property (strong,nonatomic) UIScrollView *scrollView;

@end

@implementation MYXAgreementViewController


- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:NO];
}


- (void)viewDidLoad {
    [super viewDidLoad];
//    _webView = [[UIWebView alloc] init];
//    [self.view addSubview:_webView];
//
//    [_webView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.top.width.height.equalTo(self.view);
//    }];
//
//     NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",self.urls]]];
//    [_webView loadRequest:request];
    self.scrollView = [[UIScrollView alloc] init];
    [self.view addSubview:self.scrollView];
    [self.scrollView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.width.height.equalTo(self.view);
    }];
    [self addGuideImg];
}
- (void)addGuideImg{
    UIImageView *guideImgView = [[UIImageView alloc] init];
    guideImgView.image = [UIImage imageNamed:@"employeer_agreement"];
    CGFloat imgHeight = guideImgView.image.size.height;
    guideImgView.frame = CGRectMake(0, 0, ScreenWidth, imgHeight);
    self.scrollView.contentSize = CGSizeMake(ScreenWidth, imgHeight);
    [self.scrollView addSubview:guideImgView];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
